<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<!-- #include virtual=/inc/action.header.inc.asp -->

<%
	'## 파라미터 변수 선언부
	
	SQLTitle = "-- ■■■■ 기초코드 그룹 정보 ■■■■"
	
	SQL = "SELECT groupCd, groupNm FROM tblComCode  WHERE flag='Y' GROUP BY groupCd, groupNm ORDER BY groupNm" 

	If xMode="debug" Then 
		Call showDebug(SQLTitle,SQL) 
	End If 

	Set Rs=Server.CreateObject("ADODB.RecordSet")
	Rs.open SQL, DbCon, 1
	

	Response.write "<ComCdGRP>" & vbcrlf

	If Rs.eof Or Rs.bof Then 
	Else 
		Do Until Rs.eof Or Rs.bof
			Response.write "	<ComCdGROUP>" & vbcrlf
			Call mkXMLNode("groupCd", rs("groupCd"), 2)
			Call mkXMLNode("groupNm", rs("groupNm"), 2)
			Response.write "	</ComCdGROUP>" & vbcrlf

		Rs.movenext
		Loop 
	End If
	Response.write "</ComCdGRP>" & vbcrlf
'	Call rsWithXML("Save OK!")
%>